package com.artteam.client.controller;

import com.art.common.utils.HttpResult;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "/user")
public class HelloController {
    @RequestMapping(value = "/hello")
    public HttpResult sayHello(String name){
        return HttpResult.ok("Hello World");
    }

    @GetMapping(value = "/user/{id}")
    public HttpResult getUser(@PathVariable Long id){
        return HttpResult.ok("Hello Man");
    }
}
